% TEST_ID: LANG-EXPAND-0037
% CATEGORY: language/array-ops/ops
% 测试 == 运算符

function test_eq
    A = [1, 2, 3, 4, 5, 6];
    assert(all(A == A)); % Test equality with itself
    assert(~all(A == [1, 2, 3, 4, 5, 7])); % Test inequality with a different matrix

    A = complex([1, 2, 3, 4, 5, 6], [7, 8, 9, 10, 11, 12]);
    assert(all(A == A)); % Test equality with itself
    assert(~all(A == complex([1, 2, 3, 4, 5, 7], [7, 8, 9, 10, 11, 12]))); % Test inequality with a different complex matrix

    A = [1, 2, 3, 4, 5, 6];
    B = single(A);
    assert(all(A == B)); % Test equality between double and single precision matrices

    A = "abc";
    B = 'abc';
    assert(A == B); % Test equality between string and character array
end

